package com.wll.store.user.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wll.store.user.entity.Order;
import com.wll.store.user.mapper.OrderMapper;
import com.wll.store.user.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author sdx2009
 * @since 2022-09-08
 */
@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements OrderService {

    @Autowired
    private OrderMapper orderMapper;

    @Override
    public boolean addOrder(Order orderInfo) {
        boolean result = orderMapper.addOrder(orderInfo);

        return result;
    }

    //查询所有订单信息
    @Override
    public List<Order> orderList() {
        return orderMapper.selectOrderList();
    }

    /*@Override
    public boolean deleteOrder() {
        return orderMapper.deleteOrder();
    }*/
}
